package com.wgts.wgts.control.interploator;

import android.animation.TimeInterpolator;

public class ToastInterploator implements TimeInterpolator {


    @Override
    public float getInterpolation(float input) {

        if(input < 0.2){
            return input * 2.5f;
        }

        if(input > 0.2 && input < 0.8){
            return 0.5f;
        }

        if(input > 0.8){
            return (input - 0.8f) * 2.5f + 0.5f;
        }

        return 0;
    }
}
